package com.alks.function.data.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
public class MpPurDisDto {

    @ApiModelProperty("材料类型")
    private String seqName;

    @ApiModelProperty("订购类型")
    private String purType;

    @ApiModelProperty("订购单号")
    private String purNo;

    @ApiModelProperty("采购员")
    private String sysUser;

    @ApiModelProperty("指令")
    private String lotNo;

    @ApiModelProperty("型体")
    private String style;

    @ApiModelProperty("料号")
    private String mtlNo;

    @ApiModelProperty("颜色")
    private String mtlColor;

    @ApiModelProperty("品名")
    private String mtlName;

    @ApiModelProperty("规格")
    private String mtlSpec;

    @ApiModelProperty("单位")
    private String mtlUnit;

    @ApiModelProperty("订购日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate purDate;

    @ApiModelProperty("厂商回复交期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate inDate;

    @ApiModelProperty("需求交期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate vendorDate;

    @ApiModelProperty("厂商")
    private String vendorName;

    @ApiModelProperty("订购数量")
    private float purQty;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("金额")
    private BigDecimal amt;

    @ApiModelProperty("入库数量")
    private float qty;

    @ApiModelProperty("入库日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate recDate;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("1 绿色 2 黄色 0 无")
    private Integer backgroundColor;
}
